package com.hkd.order_service.api.fallback;

import com.hkd.common.api.ApiResponse;
import com.hkd.common.api.BaseFallBack;
import com.hkd.common.api.BaseFallbackFactory;
import com.hkd.order_service.api.ShippingInfoService;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author HKD
 * @date 2022/9/19 0:41
 */
@Component
public class ShippingInfoServiceImplFallback extends BaseFallbackFactory<ShippingInfoService> {
    @Override
    public ShippingInfoService create(Throwable throwable) {
        FeignFallback fallback = new FeignFallback();
        fallback.setCause(throwable);
        return fallback;
    }
    public class FeignFallback extends BaseFallBack implements ShippingInfoService {

    }
}
